package com.zw.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zw.common.entity.product.CategoryEntity;
import com.zw.common.utils.PageUtils;
import com.zw.gulimall.product.vo.Catalog2VO;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author zw
 * @email Alisinngai@gmail.com
 * @date 2023-06-11 23:54:03
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();


    void removeBatchByIds(List<Long> list);

    Long[] findCatlogPath(Long attrGroupId);

    void updateDetail(CategoryEntity category);

    List<CategoryEntity> getLevel1Categorys();

    Map<String, List<Catalog2VO>> getCatalogJsonWithSpringCache();
}

